/****************************************************
    Author:            龙之介
    CreatTime:    2021/2/12 14:33:12
    Description:     Nothing
*****************************************************/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using UnityEngine.UI;
using System.Linq;



namespace LongZhiJie
{
	public class ClosePlayer :MonoBehaviour
	{
        public GameObject 关起来;

        private void OnTriggerEnter2D(Collider2D collision)
        {
            if(collision.tag=="Player")
            {
                关起来.SetActive(true);
                Destroy(gameObject);

            }
        }

    }
}